package com.develophelper.example.swagger.endpoint;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author snaildev
 * @date 2020/12/07
 **/

@Slf4j
@RestController
@Api(tags="HelloWorldEndpoint")
public class HelloEndpoint {

    @GetMapping("/hello")
    @ApiOperation("HelloWorldAction")
    public String helloWorld() {
        return "hello world";
    }
}
